export default ({ app }) => {
  // let routerList = []
  app.router.afterEach((to, from) => {
    //  console.log(from)
    //  console.log(to.path)
    // if (routerList.length && routerList.indexOf(to.name) === routerList.length - 1) {
    //   console.log('回退')
    //   routerList.splice(routerList.length - 1, 1)
    //   from.meta.keepAlive = false
    //   to.meta.keepAlive = true
    // } else {
    //   console.log('前进')
    //   routerList.push(from.name || '/')
    // }
  })
}
